package main

import (
	"qianggougo/config"
	"qianggougo/controller/common"
	"qianggougo/router"
	"qianggougo/task"
)

func main() {
	config.Load()
	common.InitDB()                 // 初始化mysql
	common.InitRedis()              // 初始化redis
	task.StartBulletQueueConsumer() // 启动定时任务
	r := router.SetupRouter()
	r.Run(":8080")
}
